package com.lagou.edu.service;

import com.lagou.edu.service.impl.AuthCodeFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author
 */
@FeignClient(value = "lagou-service-code", fallback = AuthCodeFallBack.class, path = "/code")
public interface AuthCodeServiceFeignClient {

    @GetMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable String email, @PathVariable String code);
}
